package com.example.vo.role;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@Schema(description = "角色分页返回对象")
public class RolePageRespVO {
    /**
     * ID
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @Schema(description = "角色唯一标识符")
    private Long id;

    /**
     * 名称
     */
    @Schema(description = "角色名称", example = "管理员")
    private String name;

    /**
     * 角色标签
     */
    @Schema(description = "角色标签", example = "ADMIN")
    private String label;

    /**
     * 备注
     */
    @Schema(description = "备注信息", example = "此角色具有所有权限")
    private String remark;

    /**
     * 数据权限是否关联上下级
     */
    @Schema(description = "数据权限是否关联上下级", example = "true")
    private Boolean relevance;

    /**
     * 状态
     */
    @Schema(description = "角色状态", example = "true")
    private Boolean status;

    /**
     * 创建时间
     */
    @Schema(description = "角色创建时间")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @Schema(description = "角色更新时间")
    private LocalDateTime updateTime;

}
